<%= form_tag({}, :id => 'mainForm') do %>                    

		<table class="full">
			<thead>
				<tr>
					<th>
					<input class="checkbox select-all" type="checkbox" /></th>
					<th width="60px">Image</th>
		
					<th>Title</th>
					<th>Event</th>
					<th>Width x Height</th>
					<th>Controls</th>
				</tr>

			</thead>
			<tfoot>
				<tr>
					<td colspan="7">
					<div class="bulk-actions">
						<select name="dropdown_action" class="dropdown_action">
								<option value="non">Choose an action...</option>
								<option value="delete">Delete</option>
						</select>
						<input type="button" class="button" onclick="doSelectedAction('<%= url_for({:action => "delete_selected"}) %>');" value="Apply to selected" />
					</div>
					
						
						<%= will_paginate(@images, :renderer => "PaginationListLinkRenderer") %>
			
					
		
					<!-- End .pagination -->
					<div class="clear">
					</div>
					</td>
				</tr>
			</tfoot>
			<tbody class="tooltip-enabled">
				<% @images.each do |item| %>
				<tr>
					<td>
						<input type="checkbox" class="checkbox" name="ids[<%= item.id %>]" />						
					</td>
		
					<td>
						<a class="fx" href="<%= url_for({:controller => 'images', :action => 'show', :id => item.id}) +  "_s.jpg" %>" title="<%= item.title %>" rel="group1">
						<img src="<%= url_for({:controller => 'images', :action => 'thumbnail', :id => item.id, :size => "tiny"}) %>" border="0" /></a>
					</td>
					<td>
						<%= item.title %>
					</td>
					<td>
						<%= item.event.title if !item.event.nil? %>
					</td>
					<td>
						<%= item.width.to_s + " x " + item.height.to_s %>
					</td>					
					<td>
						
												
			
					  
								<%= link_to image_tag("icons/edit.png",
												:border=>0,
												:title => 'Edit'),
												url_for({:action => 'edit', :id => item.id}),
												"original-title" => 'Edit' %>
								<span class="delete">
								<%= link_to image_tag("icons/delete.png",
												:border=>0,
												:title => 'Edit'),
												url_for({:action => 'destroy', :id => item.id}),
												"original-title" => 'Delete',
												:confirm => 'Are you want to delete this article !' %>
								</span>
								<span class="delete">
								<%= link_to image_tag("icons/recreate_thumb.png",
												:border=>0,
												:title => 'Recreate Thumbnails'),
												url_for({:action => 'recreate_thumb', :id => item.id}),
												"original-title" => 'Recreate Thumbnails' %>
								</span>	
									
						
					</td>
				</tr>
				<% end %>
			</tbody>
		</table>
						  
<% end %>				    